package com.djl.sqtg.service.impl;

import com.djl.sqtg.entity.Admin;
import com.djl.sqtg.mapper.AdminMapper;
import com.djl.sqtg.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements IAdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin findAdminByUserPwd(String username,String password) {
        return adminMapper.findAdminByUserPwd(username,password);
    }

    @Override
    public String getPassword(String username) {
        return adminMapper.getPassword(username);
    }
}
